package com.osard.screen.event;

/**
 * 录制出现错误时触发
 */
public class ScreenRecordFailedEvent implements BaseScreenRecordEvent {

    private final String message;
    private final Throwable e;

    public ScreenRecordFailedEvent(String message, Throwable e) {
        this.message = message;
        this.e = e;
    }

    /**
     * 录制发生错误时的异常message
     */
    public String getMessage() {
        return message;
    }

    /**
     * 异常对象
     */
    public Throwable getE() {
        return e;
    }
}
